package net.wexoo.onlinedivelog.proxy;

import java.util.List;

import net.wexoo.onlinedivelog.dal.IDAO;

import org.apache.wicket.extensions.markup.html.repeater.util.SortParam;

/**
 * IDAO.java
 * 
 * @author wexoo
 */
public interface IProxy<T> {

  public abstract T saveOrUpdate(T entity);

  public abstract boolean remove(T entity);

  public abstract List<T> getAll();

  public abstract List<T> getAll(SortParam sortParam, Integer first, Integer count);

  public abstract T getBeanById(int id);

  public abstract Long getCount();

  public abstract IDAO<T> getDao();
}